﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Exception.aspx.cs" Inherits="SY.WebSite.Web.View.Exception" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>权限错误提醒 - <%=Settings.Title%></title>
    <link href="<%=Settings.StaticFileDomain%>/Themes/Foundation/stylesheets/foundation.min.css" rel="stylesheet" type="text/css" />
    <link href="<%=Settings.StaticFileDomain%>/Themes/Default/index.css" rel="stylesheet" type="text/css" />
    <script src="<%=Settings.StaticFileDomain%>/Scripts/jquery-1.6.1.min.js" type="text/javascript"></script>
    <!--[if lt IE 9]>
        <script src="<%= Settings.StaticFileDomain %>/Scripts/html5.js" type="text/javascript"></script>
    <![endif]-->
</head>
<body>
    <div class="container top-bar">    
        <div class="attached">
            <div class="name">
                <span><a href="javascript:void(0)"><%=Settings.Title%></a></span>
            </div>
            <ul class="right">
                <li class="choose">
  			      <a href="javascript:void(0)">帐号管理</a>
                  <div>
                    <% if (CurrentUser.UserType == 100) {%>
                    <a href="<%= Settings.DomainUrl %>/Admin/Manage.aspx">后台管理</a>
                    <% }%>
                    <a href="<%= Settings.DomainUrl %>/ResetPassword.aspx">修改密码</a>
                    <a id="logout" href="javascript:void(0)">退出登录</a>
                  </div>
  			    </li>
            </ul>
        </div>
    </div>

    <header class="big-back" id="homepage">
        <div class="row">
          <div class="six columns">
            <h4><% switch (Request.QueryString["type"]) {
                        case "1": %>
                    友情提醒
                    <%
                        break;
                        case "2":
                    %>
                    权限错误
                    <%
                        break;
                        case "3":
                    %>您要找的页面不存在
                    <%
                        break;
                }%>
            </h4>
            <h6><%= Request.QueryString["message"] %></h6>
          </div>
        </div>
    </header>

    <div class=" footer">CopyRight &copy; <%= DateTime.Now.Year %> 福州素天下食品有限公司</div>
    <script type="text/javascript">
        $("#logout").click(function () {
            $.post("/handler/user.ashx?action=logout", {}, function (data) {
                window.location.reload();
            }, "json");
        });
    </script>
</body>
</html>